Skip to main content

Stored XSS into anchor href attribute with double quotes HTML-encoded

1

Let's go and comment the following under the post.

2

We can now open Left CLick > Inspect to open the developer tools and search our website.com payload.

3

As we can see, it is being inserted in the href attribute of the <a> tag.

In order to solve the lab, we have to use the following payload in the Website input field:

javascript:alert("1");

4

Let's verify if the payload has been inserted properly.

5

Now, if we click on the <a> tag link, the Javascript will be executed, generating an alert.

6

We have solved the lab.

7